<?php

namespace App;
use Mail;
	class sendEmail
	{

		static public function send($id,$_token,$account)
		{
		Mail::send('emails.activation', ['id' => $id,'_token'=>$_token], function ($m) use ($account) {
                                $m->from('shinubiaa@sina.com', '优购 百优百购');

                                $m->to($account, '客观你好')->subject('优购账户激活');
                            });
		}

		static public function sendback($id,$_token,$account,$num)
		{

			//发送邮件
     Mail::send('emails.getback', ['id' =>$id,'_token'=>$_token,'account'=>$account,'num'=>$num], function ($m) use ($account) {
                            $m->from('shinubiaa@sina.com', '优购 百优百购');

                            $m->to($account, '尊敬的客户')->subject('找回密码');
                        });
		}


	}
	
	
